<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<html:html>
	<head> 
		<title> </title>
	</head>
	<body>
		<div>
			<html:form action="/insertTeam">
				<input type="hidden" value="save">
				Team Name : <html:text name="teamForm" property="teamName"/> 
				<html:submit>Save</html:submit>
			</html:form>
		</div>
		<div> <hr></div>
		<div>
			<logic:present property="teamList" name="teamForm" >
				<table align="center" border="2">
				<logic:iterate id="teamList" property="teamList" name="teamForm">
				<tr>	
					
					<td><bean:write name="teamList" property="teamName"/></td>
				</tr>
				</logic:iterate>
				</table>
			</logic:present>

		</div>
	</body>
</html:html>